package me.tonywang.common.result;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/8/18.
 */
public class QueryParam {

    List<Map<String,String>> filterRules = new ArrayList<Map<String,String>>();

    Map<String,String> param = new HashMap<String,String>();

    String sort ;

    String order ;

    Integer page = 1;

    Integer rows = 20 ;

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public List<Map<String,String>> getFilterRules() {
        return filterRules;
    }

    public void setFilterRules(List<Map<String,String>> filterRules) {
        this.filterRules = filterRules;
    }

    public Map<String, String> getParam() {
        return param;
    }

    public void setParam(Map<String, String> param) {
        this.param = param;
    }

    @Override
    public String toString() {
        return "QueryParam{" +
                "filterRules=" + filterRules +
                ", sort='" + sort + '\'' +
                ", order='" + order + '\'' +
                ", page=" + page +
                ", rows=" + rows +
                ", param=" + param +
                '}';
    }
}
